from flask import session
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from info import create_app,db

app=create_app()
# 脚本管理对象
manager=Manager(app)
# 迁移对象创建
Migrate(app,db)
# 添加迁移命令
manager.add_command('db',MigrateCommand)

@app.route('/')
def index():
    return "This is index show"


if __name__ == '__main__':
    manager.run()